package com.example.icedcap.topeka_fake.model.quiz;

import android.os.Parcel;

/**
 * Author: doushuqi
 * Date: 15/7/15
 * Time: 上午11:09
 * Email: shuqi.dou@singuloid.com
 */
public final class AlphaPickerQuiz extends Quiz<String> {


    public AlphaPickerQuiz(String question, String answer, boolean solved) {
        super(question, answer, solved);
    }

    protected AlphaPickerQuiz(Parcel in) {
        super(in);
        setAnswer(in.readString());
    }

    @Override
    public QuizType getQuizType() {
        return QuizType.ALPHA_PICKER;
    }

    @Override
    public String getStringAnswer() {
        return getAnswer();
    }


    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(getAnswer());
    }
}
